FROM java:8
MAINTAINER bingo
ADD ./target/tjutCommunity-0.0.1-SNAPSHOT.jar tjutComunity.jar
ENTRYPOINT ["java","-jar","tjutComunity.jar","--server.port=8084"]

function getCourse(html):
    if html is null, return null
    create a new Document object by parsing the html using Jsoup
    get the first caption element using the tag name "caption"
    create a new CoursesKB object
    set the title of the CoursesKB object to the text of the titleElement
    if the title of the CoursesKB object starts with " 同学课表", return null
    get all tr elements using the tag name "tr"
    set the course property of the CoursesKB object to the result of calling getCourses(trs)
    set the nonCourse property of the CoursesKB object to the result of calling getNotCourse(trs)
return the CoursesKB object
